package kargo.suratkargokargotakip;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DataBase extends SQLiteOpenHelper {
	static final String VeriTabani = "SuratKargo";
	static final int Version = 1;

	//
	public DataBase(Context context) {
		super(context, VeriTabani, null, Version);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE CariTable ( Id INTEGER PRIMARY KEY AUTOINCREMENT , CariKodu TEXT);");

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL("DROP TABLE IF EXIST CariTable");
		onCreate(db);
	}
}
